package com.Allen.service;

import com.Allen.Vo.PortalVo;
import com.Allen.pojo.Headline;
import com.Allen.utils.Result;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author 86187
* @description 针对表【news_headline】的数据库操作Service
* @createDate 2023-12-09 23:29:16
*/
public interface HeadlineService extends IService<Headline> {

    /**
     * 首页分页查询
     * @param portalVo
     * @return
     */
    Result findNewsPage(PortalVo portalVo);

    /**
     * 首页详情接口
     * @param hid
     * @return
     */
    Result showHeadlineDetail(Integer hid);

    /**
     * 头条发布实现
     * @param headline
     * @return
     */
    Result publish(Headline headline);

    /**
     * 修改头条回显
     * @param hid
     * @return
     */
    Result findHeadlineByHid(Integer hid);

    /**
     * 头条修改实现
     * @param headline
     * @return
     */
    Result updateHeadLine(Headline headline);
}
